package com.aspose.cells;

class zbea extends zck {
   zbea(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.a.ze var2 = new com.aspose.cells.b.a.b.a.ze();
      com.aspose.cells.b.a.b.zo[] var3 = new com.aspose.cells.b.a.b.zo[12];
      float var4 = 0.0F;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var4 = Math.min(var1.h(), var1.i()) * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
         } else {
            var4 = Math.min(var1.h(), var1.i()) * 0.24F;
         }
      } else {
         var4 = Math.min(var1.h(), var1.i()) * 0.24F;
      }

      if (var4 <= 0.0F) {
         var2.b(var1);
         var2.i();
         return var2;
      } else {
         var3[0] = new com.aspose.cells.b.a.b.zo(this.g, var4 + this.h);
         var3[1] = new com.aspose.cells.b.a.b.zo(var4 + this.g, var4 + this.h);
         var3[2] = new com.aspose.cells.b.a.b.zo(var4 + this.g, this.h);
         var3[3] = new com.aspose.cells.b.a.b.zo(var1.h() - var4 + this.g, this.h);
         var3[4] = new com.aspose.cells.b.a.b.zo(var1.h() - var4 + this.g, var4 + this.h);
         var3[5] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var4 + this.h);
         var3[6] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() - var4 + this.h);
         var3[7] = new com.aspose.cells.b.a.b.zo(var1.h() - var4 + this.g, var1.i() - var4 + this.h);
         var3[8] = new com.aspose.cells.b.a.b.zo(var1.h() - var4 + this.g, var1.i() + this.h);
         var3[9] = new com.aspose.cells.b.a.b.zo(var4 + this.g, var1.i() + this.h);
         var3[10] = new com.aspose.cells.b.a.b.zo(var4 + this.g, var1.i() - var4 + this.h);
         var3[11] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() - var4 + this.h);
         var2.a(var3[0], var3[1]);
         var2.a(var3[1], var3[2]);
         var2.a(var3[2], var3[3]);
         var2.a(var3[3], var3[4]);
         var2.a(var3[4], var3[5]);
         var2.a(var3[5], var3[6]);
         var2.a(var3[6], var3[7]);
         var2.a(var3[7], var3[8]);
         var2.a(var3[8], var3[9]);
         var2.a(var3[9], var3[10]);
         var2.a(var3[10], var3[11]);
         var2.a(var3[11], var3[0]);
         var2.i();
         return var2;
      }
   }
}
